home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 17 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.2 KB

  1. Path: in2.uu.net!bounce-back
  2. Date: 09 Jan 96 14:46:54 GMT
  3. Approved: fjh@cs.mu.oz.au
  4. From: Etay_Bogner@mail.stil.scitex.com (Etay Bogner)
  5. Newsgroups: comp.std.c++
  6. Subject: Re: Initialization of Static Components of a Template Class
  7. X-Original-Date: Tue, 09 Jan 1996 10:06:45 +0200
  8. Organization: Scitex Corp.
  9. Message-ID: <Etay_Bogner-0901961006450001@metay.stil.scitex.com>
  10. References: <4cr2m1$1kcq@news.gate.net>
  11. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  12.     iQBFAgUBMPJ/6OEDnX0m9pzZAQG0YwF/YXCtmekaEL64NMrZN2k9p0ctQKLq73tI
  13.     Q3gs6bU2LYwbz/FR9J/0E/drQqlbjZ4c
  14.     =1T5h
  15.  
  16. In article <4cr2m1$1kcq@news.gate.net>, solution@gate.net (Ken Walter) wrote:
  17.  
  18. >> template<class T> int SOMEclass::AStatic(0); 
  19.  
  20. change it to :
  21.  
  22. template<class T> int SOMEclass<T>::AStatic = 0; // = 0 is clearer for int's
  23.                                ^^^
  24. This is legal for quite some time now, and actually, I don't know why it
  25. passed the moderation, since it's surely a FAQ.
  26.  
  27. -- 
  28. -- Etay Bogner,
  29. -- Etay_Bogner@mail.stil.scitex.com,
  30. -- Scitex Corp.
  31. -- Israel.
  32. ---
  33. [ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  34.   Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy
  35.   is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
  36.